<html>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<head>
<title>Exercises</title>
<link rel="STYLESHEET" type="text/css" href="images/style.css">
<link rel="STYLESHEET" type="text/css" href="images/docsafari.css">
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td><div STYLE="MARGIN-LEFT: 0.15in;"><a href="toc.html"><img src="images/team.gif" width="60" height="17" border="0" align="absmiddle"  alt="Team BBL"></a></div></td>
<td align="right"><div STYLE="MARGIN-LEFT: 0.15in;">
<a href=ch21lev1sec6.html><img src="images/prev.gif" width="60" height="17" border="0" align="absmiddle" alt="Previous Page"></a>
<a href=app01.html><img src="images/next.gif" width="60" height="17" border="0" align="absmiddle" alt="Next Page"></a>
</div></td></tr></table>
<br><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top"><a name="ch21lev1sec7"></a>
<h3 class="docSection1Title">Exercises</h3>
<P><table border="0" cellspacing="16" cellpadding="0"><TR valign="top"><td align="right" class="docText" width="50"><a name="ch21qa1q1"></a><B>21.1</b></TD><TD><p class="docText">Translate the IPP error code values listed in <tt>ipp.h</tt> into error messages. Then modify the print spooler daemon to log a message at the end of the <tt>printer_status</tt> function when the IPP header indicates a printer error.</p>
</TD></TR><TR valign="top"><td align="right" class="docText" width="50"><a name="ch21qa1q2"></a><B>21.2</b></td><TD><p class="docText">Add support to the <tt>print</tt> command and the <tt>printd</tt> daemon to allow users to request double-sided printing. Do the same for landscape and portrait page orientation.</P>
</TD></tr><TR valign="top"><TD align="right" class="docText" width="50"><a name="ch21qa1q3"></a><b>21.3</b></TD><TD><p class="docText">Modify the print spooler daemon so that when it starts, it contacts the printer to find out what features are supported by the printer so that the daemon doesn't request an option that isn't supported.</p>
</td></tr><tr valign="top"><TD align="right" class="docText" width="50"><a name="ch21qa1q4"></a><b>21.4</b></TD><td><p class="docText">Write a command to report on the status of pending print jobs.</P>
</td></tr><tr valign="top"><td align="right" class="docText" width="50"><a name="ch21qa1q5"></a><b><a class="docLink" href="app03lev1sec21.html#ch21qa1q5a5">21.5</a></b></td><td><p class="docText">Write a command to cancel a pending print job.</p>
</td></tr><tr valign="top"><td align="right" class="docText" width="50"><a name="ch21qa1q6"></a><b>21.6</b></td><td><p class="docText">Add support for multiple printers to the printer spooler. Include a way to move print jobs from one printer to another.</p>
</td></TR></table></P>

<a href="17021535.html"><img src="images/pixel.gif" alt="" width="1" height="1" border="0"></a><ul></UL></TD></TR></table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td><div STYLE="MARGIN-LEFT: 0.15in;"><a href="toc.html"><img src="images/team.gif" width="60" height="17" border="0" align="absmiddle"  alt="Team BBL"></a></div></td>
<td align="right"><div STYLE="MARGIN-LEFT: 0.15in;">
<a href=ch21lev1sec6.html><img src="images/prev.gif" width="60" height="17" border="0" align="absmiddle" alt="Previous Page"></a>
<a href=app01.html><img src="images/next.gif" width="60" height="17" border="0" align="absmiddle" alt="Next Page"></a>
</div></td></tr></table>
</body></html><br>
<table width="100%" cellspacing="0" cellpadding="0"
style="margin-top: 0pt; border-collapse: collapse;"> 
<tr> <td align="right" style="background-color=white; border-top: 1px solid gray;"> 
<a href="http://www.zipghost.com/" target="_blank" style="font-family: Tahoma, Verdana;
 font-size: 11px; text-decoration: none;">The CHM file was converted to HTM by Trial version of <b>ChmD<!--6-->ecompiler</b>.</a>
</TD>
</TR><tr>
<td align="right" style="background-color=white; "> 
<a href="http://www.etextwizard.com/download/cd/cdsetup.exe" target="_blank" style="font-family: Tahoma, Verdana;
 font-size: 11px; text-decoration: none;">Download <b>ChmDec<!--6-->ompiler</b> at: http://www.zipghost.com</a>
</TD></tr></table>
